<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page errorPage="error/404.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>管理员信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
         <link rel="shortcut icon" href="/images/favicon.png">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
</head>
<body>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
    <legend style="margin-left: 435px">管理员信息</legend>
</fieldset>

<blockquote class="layui-elem-quote">
    <table class="layui-table" lay-size="lg">
        <colgroup>
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <tr>
            <th>用户名</th>
            <td>${admin.username}</td>
        </tr>

        <tr>
            <th>昵称</th>
            <td>${admin.realname}</td>
        </tr>
        <tr>
            <th>手机号</th>
            <td>${admin.phonenumber}</td>
        </tr>       
        <tr>
            <th>管理员类型</th>
            <c:if test="${admin.status==1}">
             <td><span style="color:red;">超级管理员</span></td>
            
            </c:if>
                 <c:if test="${admin.status!=1}">
             <td><span>管理员</span></td>
            
            </c:if>
           
        </tr>
        <tr>
            <th>IP地址</th>
            <td> ${admin.localhost}</td>
        </tr>
         <tr>
            <th>创建时间</th>
            <td><fmt:formatDate value="${admin.createtime}" pattern="yyyy-MM-dd  HH:mm:ss"/></td>
        </tr>
    </table>
</blockquote>
</body>
</html>